<template>
	<div class="select-address">
		<div class="coupon" :data="data">
			<h2 class="fs32rem c333 bold align-center border-b pt40rem pb40rem">确定收货地址</h2>
			<router-link tag="div" :to="'/member/address/?type=experience&id='+ goods_id" class="address bg-f5 layout pt20rem pb20rem pl30rem pr30rem" v-if="other_list">
				<div class="flex_1 mr10rem">
					<h3 class="bold fs30rem mb10rem c333">商品收货的地址</h3>
					<p class="fs26rem c666 pt10rem pb10rem" v-if="other_address">{{ other_address.username }} <span class="ml20rem fs26rem c666">{{ other_address.moblie }}</span></p>
					<p class="fs26rem c666" v-if="other_address">{{ other_address.pcd_address }}{{ other_address.address }}</p>
					<p class="fs26rem c666 pt10rem pb10rem" v-for="item in other_list" v-if="!other_address && item.is_default=='1'">{{ item.username }} <span class="ml20rem fs26rem c666">{{ item.moblie }}</span></p>
					<p class="fs26rem c666" v-for="item in other_list" v-if="!other_address && item.is_default=='1'">{{ item.pcd_address }}{{ item.address }}</p>
				</div>
				<i class="iconfont icon-right2"></i>
			</router-link>
			<router-link tag="div" :to="'/member/address/?type=experience&id='+ goods_id" class="address bg-f5 layout pt20rem pb20rem pl30rem pr30rem" v-else>
				<h3 class="bold fs30rem mb10rem c333">请添加地址</h3>
				<i class="iconfont icon-right2"></i>
			</router-link>
			<div class="pl30rem pr30rem pt20rem pb20rem">
				<p class="fs26rem c999" style="line-height:150%;">注:系统将在预购体验结束后24小时公布体验幸运名单，请注意查看</p>
				<p class="fs24rem cxo-red-color" style="line-height:150%;">(每天签到,邀请及分享好友体验,可以提升幸运值,提高体验机会)</p>
			</div>
			<div class="border-t layout">
				<button class="pt30rem pb30rem border-r w50" @click="popupAddress = false">取消</button>
				<button class="pt30rem pb30rem w50" @click="yuYue">确定</button>
			</div>
		</div>
	</div>
</template>

<script>
import { Popup } from 'mint-ui';
import { getAddress } from "@/api/address"; 
	export default{
		components:{
			Popup,
		},
		props:
        {
        	data:{
        		type: Array,
        	}
        },
		data()
		{
			return{
				// other_address : null,
			}
		},
		methods:
		{
			aaa()
			{
				this.$emit('yuYue',111)
			}
		}
	}
</script>

<style lang="less">
	.select-address{

	}
</style>
